#!/bin/bash
#src: https://ubuntuforums.org/showthread.php?t=1188099

#XXX: prerequisites: 
#execute:
# sudo groupadd emacs
# sudo chmod a-x,g+x /usr/bin/emacs* && sudo chown root:emacs /usr/bin/emacs*
#put this line in /etc/sudoers(.d/30-emacs-no-internet)
# %wheel ALL=(:emacs) NOPASSWD: ALL
# #src: https://askubuntu.com/questions/45072/how-to-control-internet-access-for-each-program
#put a+x file in /etc/NetworkManager/dispatcher.d/pre-up.d/iptables_emacs_rule
#contents too big to put here!


#eof


#src:ipu and https://askubuntu.com/questions/45072/how-to-control-internet-access-for-each-program
sudo -g emacs -- "$@"

